package com.qk.management.controller;

import com.qk.common.PageResult;
import com.qk.common.Result;
import com.qk.dto.log.LogDTO;
import com.qk.management.service.LogService;
import com.qk.vo.log.LogVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 上官徵羽
 * @version 1.0
 * @since 2025-10-17 21:50
 */
@RestController
@RequestMapping("/logs")
public class LogController {
    @Autowired
    private LogService logService;

    @GetMapping
    public Result listPage(LogDTO logDTO){
        PageResult<LogVO> pageResult = logService.listPage(logDTO);
        return Result.success(pageResult);
    }
}
